package com.lrd.snapshotorder.config.redis;

/**
 * redis key 常量池
 */
public class RedisKeyConstants {

    public static final String ORDER_BATCH_NUMBER = "lanjing:order:batch:number";
    public static final String ORDER_BATCH_NUMBER_SIZE = "lanjing:order:batch:number:size:%s";

    public static final String ORDER_QUEUE = "lanjing:order:queue:name:MyRBlockingDeque:%s";

    public static String getOrderBatchNumberSize(String key) {
        return String.format(ORDER_BATCH_NUMBER_SIZE, key);
    }

    public static String getBlockingDeque(String key) {
        return String.format(ORDER_QUEUE, key);
    }
}
